package com.leaf.u_spring.chapter04;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy			//启用AspectJ自动代理	XMl-->   <aop:aspectj-autoproxy/>
@ComponentScan
public class ConcertConfig {

	/**
	 * 声明Audience bean
	 * @return
	 */
	@Bean
	public Audience audience(){
		return new Audience();
	}
}
